package com.handler.base;

import com.event.ProcessorEvent;
import lombok.Data;

/**
 * @author : gameZhao
 * @version V1.0
 * @Project: disruptorDemo
 * @Package com.handler
 * @Description: 这个是原型类型线程池队列泛型是runnable 不能通过参数传递handler 所以每次new一个handler
 * @date Date : 2021年12月27日 18:21
 */
@Data
public class ThreadProcessorHandler extends BaseProcessorHandler implements Runnable{
    private ProcessorEvent processorEvent;
    public ThreadProcessorHandler(ProcessorEvent processorEvent) {
        this.processorEvent = processorEvent;
    }
    
    @Override
    public void run() {
        execHandler(processorEvent);
    }
    
}
